package com.company;

public class L_Teacher {
    private String name;
    private double salary;
    private int age;

    public L_Teacher(String name, double salary, int age) {
        this.name = name;
        this.salary = salary;
        this.age = age;
    }

    public static void main(String[] args) {
        L_Teacher teacher = new L_Teacher("Ken", 6000, 18);
        System.out.println("教师信息如下：");
        System.out.println("教师名称："+teacher.name+"\n教师工资："+teacher.salary+"\n教师年龄："+teacher.age);
    }
}
